class CreateShips < ActiveRecord::Migration
  def self.up
    create_table :ships do |t|
      # t.column :name, :string
      t.column :name, :string
      t.column :captain_id, :integer
      t.column :location_id, :integer
      t.column :crew, :integer
      t.column :crew_max, :integer
      t.column :cannon, :integer
      t.column :cannon_max, :integer
      t.column :sail, :integer
      t.column :sail_max, :integer
      t.column :hull, :integer
      t.column :hull_max, :integer
    end
  end

  def self.down
    drop_table :ships
  end
end
